export default function(headerObject: object) {
  return function (target: any, methodName: string, descriptor: TypedPropertyDescriptor<any>): TypedPropertyDescriptor<any> {
    console.log('Header', headerObject)
    target[methodName].__DECORATE_DATA.headers = {
      ...(target[methodName]?.__DECORATE_DATA?.headers ?? {}),
      ...headerObject
    }
    return descriptor
  }
}